package com.zf.apartment.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zf.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 公寓和图片的关系对象 flats_image
 *
 * @author rxf
 * @date 2024-10-07
 */
@TableName(resultMap = "com.zf.apartment.mapper.FlatsImageMapper.FlatsImageResult")
public class FlatsImage extends BaseEntity
        {
        private static final long serialVersionUID = 1L;

        /** 图片ID */
        @TableId(value = "image_id",type = IdType.AUTO)
        private Long imageId;

        /** 公寓ID */
        private Long flatsId;

        public void setImageId(Long imageId)
        {
            this.imageId = imageId;
        }

        public Long getImageId()
        {
            return imageId;
        }
        public void setFlatsId(Long flatsId)
        {
            this.flatsId = flatsId;
        }

        public Long getFlatsId()
        {
            return flatsId;
        }

@Override
public String toString() {
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("imageId", getImageId())
        .append("flatsId", getFlatsId())
            .toString();
}
        }